<%@ include file="/common/taglibs.jsp" %>
<%--
  Created by IntelliJ IDEA.
  User: johnboyce
  Date: Jun 14, 2008
  Time: 11:27:51 PM
  To change this template use File | Settings | File Templates.
--%>
<html>
<head><title>Simple jsp page</title>
    <script type="text/javascript">

        var BandMate = Class.create();


    </script>

</head>
<body>

<br/>
<div id="content" style="min-height:400px;">
    <div class="yui-panel" style="width:300px;">
        <div id="loginDialog">
            <div class="hd">Login</div>
            <div class="bd">
                <form method="post" id="loginForm" action="<c:url value='/j_security_check'/>"
                      onsubmit="saveUsername(this);return validateForm(this)">
                    <div class="smallTitle">Welcome to the Bandmate Management System.</div>
                    <div style="width:100%; text-align:center;">
                        <table cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td style="width: 80px;"><label for="j_username"><fmt:message
                                        key="label.username"/></label>
                                </td>
                                <td><input type="text" name="j_username" id="j_username" class="textBox"/></td>
                            </tr>
                            <tr>
                                <td><label for="j_password"><fmt:message key="label.password"/></label></td>
                                <td><input type="password" name="j_password" id="j_password" class="textBox"/></td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <c:if test="${param.error != null}">
                                        <div id="loginError">
                                            <li class="error">
                                                <img src="${ctx}/images/iconWarning.gif"
                                                     alt="<fmt:message key='icon.warning'/>"
                                                     class="icon"/>
                                                <fmt:message key="errors.password.mismatch"/>
                                                    <%--${sessionScope.ACEGI_SECURITY_LAST_EXCEPTION.message}--%>
                                            </li>
                                        </div>
                                    </c:if>
                                </td>
                            </tr>
                        </table>
                        <c:if test="${appConfig['rememberMeEnabled']}">
                            <li>
                                <input type="checkbox" class="checkbox" name="rememberMe" id="rememberMe" tabindex="3"/>
                                <label for="rememberMe" class="choice"><fmt:message key="login.rememberMe"/></label>
                            </li>
                        </c:if>
                        <li>
                            <input type="submit" class="yuibutton" name="login"
                                   value="<fmt:message key='button.login'/>"
                                   tabindex="4"/>
                        </li>
                    </div>
                </form>
            </div>
            <div class="ft">
                <p>
                    <fmt:message key="login.signup">
                        <fmt:param><c:url value="/signup.html"/></fmt:param>
                    </fmt:message>
                </p>
            </div>
        </div>
    </div>
</div>


</body>
</html>